import request from '@/utils/request';
// 用户等级列表
export function levelList (params) {
  return request({
    url: 'v1/user/levelList',
    method: 'get',
    params
  });
}

// 添加用户等级
export function levelAdd (data) {
  return request({
    url: 'v1/user/levelAdd',
    method: 'post',
    data: data
  });
}

// 编辑用户等级
export function levelEdit (data) {
  return request({
    url: 'v1/user/levelEdit',
    method: 'post',
    data: data
  });
}
